<html>
<head>
    <meta http-equiv="Content-Type" charset="UTF-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">

    <script type="text/javascript">
            function getAppToken(){
                 var token=window.WebViewJavascriptBridge.getAppToken();
                 document.getElementById("showmsg").innerHTML = token;
            }

            function javacalljswith(arg){
                 document.getElementById("showmsg").innerHTML = (arg);
            }


    </script>
    <title>H5设置的标题</title>
</head>

<body>
<h3>Web模块</h3>

<h3 id="showmsg">js交互</h3>

<input type="button" value="toast(msg)" onclick="window.WebViewJavascriptBridge.toast('调用toast')"/>
<input type="button" value="getAppToken()" onclick="getAppToken()"/>
<br>
<br>
<input type="button" value="closeH5()" onclick="window.WebViewJavascriptBridge.closeH5()"/>
<input type="button" value="tryBack()" onclick="window.WebViewJavascriptBridge.tryBack('')"/>
<input type="button" value="tryBack(navPop)" onclick="window.WebViewJavascriptBridge.tryBack('{\'navPop\':\'true\'}')"/>
<br>
<br>
<input type="button" value="showTitleBar(true)" onclick="window.WebViewJavascriptBridge.showTitleBar('{\'show\':\'true\'}')"/>
<input type="button" value="showTitleBar(false)" onclick="window.WebViewJavascriptBridge.showTitleBar('{\'show\':\'false\'}')"/>
<br>
<br>
<input type="button" value="statusBarDark(true)" onclick="window.WebViewJavascriptBridge.statusBarDark('{\'dark\':\'true\'}')"/>
<input type="button" value="statusBarDark(false)" onclick="window.WebViewJavascriptBridge.statusBarDark('{\'dark\':\'false\'}')"/>
<br>
<br>
<input type="button" value="appShare(urlLink)" onclick="window.WebViewJavascriptBridge.appShare('{\'urlLink\':\'video?postId=1\'}')"/>
<br>
<br>
<input type="button" value="clearCache()" onclick="window.WebViewJavascriptBridge.clearCache()"/>
<input type="button" value="clearCacheAndLocalStorage()" onclick="window.WebViewJavascriptBridge.clearCacheAndLocalStorage()"/>
<br>
<br>
<input type="button" value="toAppNamed(h5)" onclick="window.WebViewJavascriptBridge.toAppNamed('{\'route\':\'/web/h5\',\'parameters\':{\'url\':\'https://getguang.com/?title=Guang&showNav=0\'}}')"/>
<input type="button" value="toAppNamed(baidu)" onclick="window.WebViewJavascriptBridge.toAppNamed('{\'route\':\'/web/h5\',\'parameters\':{\'url\':\'https://wenku.baidu.com\'}}')"/>
<input type="button" value="toAppNamed(search,off)" onclick="window.WebViewJavascriptBridge.toAppNamed('{\'route\':\'/search/search\',\'off\':\'true\'}')"/>
<br>
<br>
<input type="button" value="showLoadingAnim(true)" onclick="window.WebViewJavascriptBridge.showLoadingAnim('{\'show\':\'true\'}')"/>
<input type="button" value="showLoadingAnim(false)" onclick="window.WebViewJavascriptBridge.showLoadingAnim('{\'show\':\'false\'}')"/>
<br>
<br>
<input type="button" value="collectProductListV2(json)" onclick="window.WebViewJavascriptBridge.collectProductListV2('{\'items\':[{\'id\':\'24924a90e53539fcdf8d086c604925c4\',\'type\':1}],\'wishlistId\':\'1\'}')"/>
<input type="button" value="cancelCollectProductListV2(json)" onclick="window.WebViewJavascriptBridge.cancelCollectProductListV2('{\'items\':[{\'id\':\'1\'},{\'id\':\'2\'}]}')"/>
<br>
<br>
<input type="button" value="updateStoreSubscribeState()" onclick="window.WebViewJavascriptBridge.updateStoreSubscribeState('{\'storeId\':\'\'}')"/>
<input type="button" value="updateSite()" onclick="window.WebViewJavascriptBridge.updateSite()"/>
<br>
<br>
<input type="button" value="accWebPages()" onclick="window.WebViewJavascriptBridge.accWebPages('{\'WebPages\':[\'https://getguang.com/?title=Guang\',\'https://www.baidu.com?title=百度\',\'https://wenku.baidu.com?title=百度\']}')"/>
</body>
</html>